<!--
            *后台公告添加页面
            * 
            *
            * @author      3+1项目组.yuanxi
            * @version     2018-02-1 21:44
-->
{extend name="AdminPublic/public" /}
{block name="admin"}
<script type="text/javascript" charset="utf-8" src="/public/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/static/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="/public/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span>公告添加</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    	<form class="mws-form" action="/notices/insert" method="post"  enctype="multipart/form-data">
                    		<div class="mws-form-inline">
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">标题</label>
                    				<div class="mws-form-item">
                    					<input type="text" class="large" name="title" placeholder="">
                    				</div>
                    			</div>
                                <div class="mws-form-row">
                                    <label class="mws-form-label">简介</label>
                                    <div class="mws-form-item">
                                        <textarea  rows="" cols="" class="large" name="desc"></textarea>
                                    </div>
                                </div>
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">图片</label>
                    				<div class="mws-form-item">
                    					<input type="file" class="large" name="pic">
                    				</div>
                    			</div>
                                <div class="mws-form-row">
                                    <label class="mws-form-label">正文</label>
                                    <div class="mws-form-item">
                                        <script id="editor" type="text/plain"  name="content" style="width:100%;height:500px;"></script>
                                    </div>
                                </div>
                    			<div class="mws-form-row">
                                        <label class="mws-form-label">状态</label>
                                        <div class="mws-form-item clearfix">
                                             <ul class="mws-form-list inline">
                                                  <li><input type="radio" value="0" name="status"> <label>禁用</label></li>
                                                  <li><input type="radio" value="1" checked="" name="status"> <label>开启</label></li>
                                             </ul>
                                        </div>
                                   </div>
         
                    			
                    		</div>
                    		<div class="mws-button-row">
                    			<input type="submit" value="添加" class="btn btn-danger">
                    			<input type="reset" value="重置" class="btn ">
                    		</div>
                    	</form>
                    </div>    	
                </div>
 <script type="text/javascript">
               //实例化编辑器
               //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
               var ue = UE.getEditor('editor');
</script>                
{/block}
{block name="title"}后台公告添加{/block}